<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib prefix="s"
	uri="/struts-tags"%>


	
<!--  hacemos referencia a las librerias de jstl -->
<%@ taglib   prefix="c"  
			uri="http://java.sun.com/jsp/jstl/core"  %>

<%@ taglib   prefix="fmt"  
			uri="http://java.sun.com/jsp/jstl/fmt"  %>

	
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>	
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta name="keywords" content="" />
		<meta name="description" content="" />
	
	<link href="estilos/default.css" rel="stylesheet" type="text/css" media="screen" />
	
</head>
<body>
	<form action="toby/listar.action">


		<table>

			<tr>
				<td>

					<table border="1">
						<tr>
							<td>ID</td>
							<td>FECHA DESDE</td>
							<td>FECHA RENOVACION</td>
							<td>TIPO MIEMBRO</td>
							<td>APELLIDOS</td>
							<td>NOMBRES</td>
							<td>GENERO</td>
							<td>PAIS</td>
							<td>TELEFONO CASA</td>
							<td>Eliminar</td>
							<td>Modificar</td>
						</tr>
				
						<s:iterator value="membresias" status="member">
							<tr>
								<td><s:url id="eliminar" action="toby/eliminar.action">
										<s:param name="codigoEliminar">
											<s:property value="id" />
										</s:param>
									</s:url> <a href="${eliminar}" ><s:property value="id" /> </a>
								</td>
								
								
				
								
								
								
								<td><s:property value="membersince" />
								</td>
								
								<td><s:property value="lastrenewaldate" />
								</td>
								
								<td><s:property value="membershipType" />
								</td>
								
								<td><s:property value="primarymemberBean.lastname" />
								</td>
								
								<td><s:property value="primarymemberBean.firstname" />
								</td>
								
								<td><s:property value="primarymemberBean.gender" />
								</td>
								
								<td><s:property value="primarymemberBean.addressBean.country" />
								</td>
								
								<td><s:property value="primarymemberBean.contactinfoBean.homeno" />
								</td>
								
								  <td>
                              <s:url id="eliminar" action="toby/eliminar.action" >
                                <s:param name="codigoEliminar">
											<s:property value="id" />
										</s:param>
                              </s:url>  <a href="${eliminar}" >Eliminar</a>
						   			 </td>
						   			 
						   			<td>
                              <s:url id="modificar" action="toby/modificarMembresia.action" >
                                <s:param name="codigoModificar">
											<s:property value="id" />
										</s:param>
                              </s:url>  <a href="${modificar}" >Modificar</a>
						   			 </td>
								
								
							

							</tr>

						</s:iterator>

					</table></td>


			</tr>
		</table>



	</form>
</body>
</html>
